libxl: invert xc and domain model resume calls in xc_domain_resume()
authorCédric Bosdonnat <cbosdonnat@suse.com>
Mon, 28 Nov 2016 13:53:57 +0000 (14:53 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 7 Dec 2016 11:12:41 +0000 (11:12 +0000)
commitf33b4fc4efc11a45184a8a368bd3a6bdb6b01dd0
treeaea5f47bb353262dcc8597823b4e872b34d6f51e
parentea33d31b0c3d04576d7076d91bb415d44370c899
libxl: invert xc and domain model resume calls in xc_domain_resume()

Resume is sometimes silently failing for HVM guests. Getting the
xc_domain_resume() and libxl__domain_resume_device_model() in the
reverse order than what is in the suspend code fixes the problem.

Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: rebase it on top of staging ]
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_dom_suspend.c